//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop

#include "DPGrfRec.h"
#include "RLGrfRec.h"

//---------------------------------------------------------------------------
#pragma package( smart_init )
#pragma link "DialPad"
#pragma link "PHDS"
#pragma link "PHGraf"
#pragma link "DIALPAD"
#pragma resource "*.dfm"
TDPGrfRec1*  DPGrfRec1;

//---------------------------------------------------------------------------
__fastcall TDPGrfRec1::TDPGrfRec1( TComponent*  Owner ) : TDiPad( Owner )
{
}

//---------------------------------------------------------------------------
void __fastcall TDPGrfRec1::BitBtn3Click( TObject*  Sender )
{
  TPedeRel1*  PR;
  TRLGrfRec1*  RLGrfRec1 = new TRLGrfRec1( NULL );
  try
   {
    PR = new TPedeRel1( NULL );
    PR->Report = RLGrfRec1->PHReport1;
    PR->ShowModal();
   }

  __finally
   {
    Close();
    delete RLGrfRec1;
    delete PR;
   }

}

//---------------------------------------------------------------------------

